package study.fanxing.fanxinglei;

import lombok.Data;

@Data
public class GuoZhi implements YinLiao<GuoZhi>{
    private int hanliang;

    private String weidao;

    @Override
    public GuoZhi drink(GuoZhi guoZhi) {
        return guoZhi;
    }

    @Override
    public GuoZhi buy(int hanliang) {
        GuoZhi guoZhi = new GuoZhi();
        guoZhi.setHanliang(hanliang);
        return guoZhi;
    }

    @Override
    public String who(String name) {
        return name;
    }
}
